
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Rolepermission 分页列表
*/
export function getRolepermissionPagination(data: any) {
  return axios.get(`${context}/rolepermission/pagination`, { params: data });
}


/**
 * 获取 Rolepermission 所有数据
*/
export function getRolepermissionAllList(data: any) {
  return axios.get(`${context}/rolepermission/all`, { params: data });
}


/**
 * 获取 Rolepermission 详情
*/
export function getRolepermissionDetailById(id: any) {
  return axios.get(`${context}/rolepermission/${id}`, { params:{id} });
}


/**
 * 新增 Rolepermission
*/
export function addRolepermission(data: any) {
  return axios.post(`${context}/rolepermission`, data);
}

/**
 * 修改 Rolepermission
*/
export function updateRolepermission(data: any) {
  return axios.put(`${context}/rolepermission`, data);
}

/**
 * 删除 Rolepermission
*/
export function batchRemoveRolepermission(data: any) {
  return axios.post(`${context}/rolepermission/batchRemove`, data);
}

    